<?php
/**
 * QQAS - share your knowledge to the world!
 *
 * @author		xiaochong0302 <xiaochong0302@gmail.com>
 * @copyright	Copyright (c) 2011, Koogua Studio.
 * @license		http://www.qqas.org/user_guide/license.html
 * @link		http://www.qqas.org
 * @since		Version 1.0
 * @filesource
 */


class EmailTemplateModel extends Model
{

	//缓存邮件模板
	public function cacheEmailTemplates()
    {
        $results = $templates = array();
    	$results = $this->select();
    	if (!empty($results))
    	{
    		foreach ($results as $value)
    		{
    			$templates[$value['language']][$value['identifier']] = $value;
    		}
    		F('cache_email_templates', $templates);
    	}
	}

}


/* End of file EmailTemplateModel.class.php */
/* Location: ./App/Lib/Model/EmailTemplateModel.class.php */